home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10403 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 04 Mar 1996 22:57:13 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar4155713@qcd.lanl.gov>
  8. References: <JSA.96Feb16135027@organon.com> <4h8233$c7p$1@canberra.DIALix.oz.au>
  9.     <4h8mq3INNmr9@anvil.ugrad.cs.ubc.ca> <4hdv3t$911@goanna.cs.rmit.EDU.AU>
  10.     <4hf74kINNdpi@keats.ugrad.cs.ubc.ca>
  11. NNTP-Posting-Host: qcd.lanl.gov
  12. Mime-Version: 1.0
  13. Content-Type: text
  14. In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 4 Mar 1996 08:52:36 -0800
  15.  
  16. In article <4hf74kINNdpi@keats.ugrad.cs.ubc.ca>
  17. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  18.  
  19. KK: In article <4hdv3t$911@goanna.cs.rmit.EDU.AU>,
  20. KK: Richard A. O'Keefe <ok@goanna.cs.rmit.EDU.AU> wrote:
  21. KK: >The problem is not that people _can't_ develop conforming
  22. compilers, it's that 
  23. KK: >unless and until the market pushes hard enough, they _don't_.  I have been
  24. KK: >received ads for "ANSI-compliant C++ compilers" for some time now, despite
  25. KK: >the absence at the time of an actual ANSI standard for C++.  Many
  26. customers 
  27. KK: 
  28. KK: I think that what they mean is that the C subset accepted by the
  29. C++ compiler 
  30. KK: is ANSI conforming; i.e. the C++ is just an extension over the ANSI C core.
  31.  
  32. Sorry: the C subset accepted by C++ compiler is by definition C: so it
  33. is ANSI conforming? What are you saying?
  34.  
  35. There is correct C code that is incorrect C++:
  36.  
  37.   #include <stdlib.h>
  38.   int *p = malloc(sizeof *p);
  39.  
  40. and there is correct C++ code that is incorrect C:
  41.  
  42.   int *p = new (int);
  43.  
  44. So, how is either the extension of the other?
  45.  
  46. Cheers
  47. Tanmoy
  48. --
  49. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  50. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  51. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  52. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  53. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  54. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  55.